package com.peak.distribution.vo.agent;

import com.peak.distribution.enums.Constants;
import com.peak.spring.boot.api.web.IdVo;
import com.peak.spring.boot.core.mapper.Format;
import com.peak.spring.boot.core.mapper.Format.TransferFormat;
import com.peak.spring.boot.core.mapper.Transfer;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class DisAgentSalesVo extends IdVo {

	private static final long serialVersionUID = Constants.DISTRIBUTION_VERSION;
	
	/** 本日销量 */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer daySales;

	/** 本周销量 */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer weekSales;

	/** 本月销量 */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer monthSales;

	/** 本季度销量 */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer quarterSales;

	/** 总销量 */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer totalSales;

	/** 代理商个人 */
	@Transfer(mapping = "agent.id")
	private Integer agentId;

	/** 团队 */
	@Transfer(mapping = "team.id")
	private Integer teamId;
}
